import { createStore } from 'vuex';
import login from './login'
import bookmarkClass from './bookmarkClass'
export default createStore({
    getters: {
        treeData(state) {
            return state.bookmarkClass.bookmarkList
        },
        topTreeData(state) {
            return [{ title: '顶级分类', pid: '0', cid: '0' }, ...state.bookmarkClass.bookmarkList]
        }
    },
    modules: { login, bookmarkClass }
})